package enums;

public enum TaskStatus {
    DOING(1, "进行中"), DONE(2, "已完成"), FAIL(3, "执行失败");

    private Integer code;

    private String name;

    TaskStatus(Integer code, String name) {
        this.code = code;
        this.name = name;
    }

    public Integer getCode() {
        return code;
    }

    public String getName() {
        return name;
    }
}
